import request from '@/request/request'

/* 登录的接口 */
export const loginAPI = (loginForm) => {
  return request({
    url: '/sys/login',
    method: 'POST',
    data: loginForm
  })
}

/* 获取用户基本资料的接口 */
export const getUserProfileAPI = () => {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}

/* 获取用户基本信息的接口(此接口需要的参数id在获取用户基本资料的接口中存在) */
export const getUserInfoAPI = (id) => {
  return request({
    url: `/sys/user/${id}`,
    method: 'GET'
  })
}
